package pojo;

import annotations.ExcelColumn;

import java.util.Map;

/**
 * Created by Administrator on 2016/10/5.
 */
public class Result {
    @ExcelColumn(name="案卷号")
    private String categoryNo;
    @ExcelColumn(name="顺序")
    private int profileOrder;
    @ExcelColumn(name="文件（图纸）名称")
    private String profileName;
    @ExcelColumn(name="文件（图纸）编号",link = true)
    private Map<String,String> profileNo;
    @ExcelColumn(name="页数")
    private int page;
    @ExcelColumn(name="图幅")
    private String display;
    @ExcelColumn(name="页号-起")
    private String startIndex;
    @ExcelColumn(name="页号-止")
    private String endIndex;
    @ExcelColumn(name="备注")
    private String remark;

    @ExcelColumn(name="案卷名称")
    private String categoryName;

    @ExcelColumn(name="项目名称")
    private String projectName;

    private int childOrder;

    public Result(String categoryNo, int profileOrder, String profileName, Map<String,String> profileNo, int page, String display, String startIndex, String endIndex, String remark, String categoryName, String projectName) {
        this.categoryNo = categoryNo;
        this.profileOrder = profileOrder;
        this.profileName = profileName;
        this.profileNo = profileNo;
        this.page = page;
        this.display = display;
        this.startIndex = startIndex;
        this.endIndex = endIndex;
        this.remark = remark;
        this.categoryName = categoryName;
        this.projectName = projectName;

        childOrder = Integer.parseInt(categoryNo.substring(categoryNo.indexOf("/") + 1));
    }

    public String getCategoryNo() {
        return categoryNo;
    }

    public void setCategoryNo(String categoryNo) {
        this.categoryNo = categoryNo;
    }

    public int getProfileOrder() {
        return profileOrder;
    }

    public void setProfileOrder(int profileOrder) {
        this.profileOrder = profileOrder;
    }

    public String getProfileName() {
        return profileName;
    }

    public void setProfileName(String profileName) {
        this.profileName = profileName;
    }

    @ExcelColumn(name="文件（图纸）编号",link = true)
    public Map<String,String> getProfileNo() {
        return profileNo;
    }

    public void setProfileNo(Map<String,String> profileNo) {
        this.profileNo = profileNo;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public String getDisplay() {
        return display;
    }

    public void setDisplay(String display) {
        this.display = display;
    }

    public String getStartIndex() {
        return startIndex;
    }

    public void setStartIndex(String startIndex) {
        this.startIndex = startIndex;
    }

    public String getEndIndex() {
        return endIndex;
    }

    public void setEndIndex(String endIndex) {
        this.endIndex = endIndex;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public int getChildOrder() {
        return childOrder;
    }

    public void setChildOrder(int childOrder) {
        this.childOrder = childOrder;
    }
}
